package com.xinhe.web.reposity;

import com.xinhe.web.entity.AdoptedRange;
import com.xinhe.web.entity.AdoptedTreeOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface AdoptedRangeRepository  extends JpaRepository<AdoptedRange, Long> {
    @Query("from AdoptedRange where removed=0 and level=1")
    AdoptedRange findByOne();
    @Query("from AdoptedRange where removed=0 and level=2")
    AdoptedRange findByTwo();
    @Query("from AdoptedRange where removed=0 and level=3")
    AdoptedRange findByThree();
}
